<extend name="Layout:base"/>

<block name="title">比赛报名系统</block>

<block name="css"></block>

<block name="main">
    <div class="container">
        <div class="section" id="mysec">
            <h4>你参加的个人赛</h4>
                <div class="row">
                    <div class="col s12 m12 l12">
                        <div class="card-panel">
                            <table class="striped responsive-table">
                                <thead>
                                <tr>
                                    <th data-field="id">No</th>
                                    <th data-field="name">比赛名称</th>
                                    <th data-field="price">比赛成绩</th>
                                </tr>
                                </thead>

                                <tbody>
                                <volist name="UserInfo_one" id="vo">
                                    <tr>
                                        <td>{$i}</td>
                                        <td>{:getEnrName($vo[enid])}</td>
                                        <td>
                                            <if condition="empty($vo[grade])">成绩未出
                                                <else/>
                                                {$vo.grade}
                                            </if>
                                        </td>
                                    </tr>
                                </volist>
                                </tbody>
                            </table>

                        </div>
                    </div>
                </div>
            <h4>你参加的团体赛</h4>
            <div class="row">
                <div class="col s12 m12 l12">
                    <div class="card-panel">
                        <table class="striped responsive-table">
                            <thead>
                            <tr>
                                <th data-field="id">No</th>
                                <th data-field="name">比赛名称</th>
                                <th data-field="name">团队成员</th>
                                <th data-field="price">比赛成绩</th>
                            </tr>
                            </thead>

                            <tbody>
                            <volist name="UserInfo_team" id="vo">
                                <tr>
                                    <td>{$i}</td>
                                    <td>{:getTeamEnName($vo[teamid])}</td>
                                    <td>{:getTeamName($vo[teamid])}</td>
                                    <td>
                                        <if condition="empty($vo[grade])">成绩未出
                                            <else/>
                                            $vo.grade
                                        </if>
                                    </td>
                                </tr>
                            </volist>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>

            <!--<ul class="pagination center">-->
            <!--{$page}-->
            <!--</ul>-->
        </div>


    </div>

</block>

<block name="js"></block>